package com.leo.foodmaster.admin.recipe.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 套餐细表
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2021-11-09
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("recipe_combo_details")
@Accessors(chain = true)
public class RecipeComboDetailsEntity {
	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.AUTO)
	private Long id;
    /**
     * 套餐主表Id
     */
	private Long comboId;
    /**
     * 所属公司Id
     */
	private Long organId;
    /**
     * 菜品Id
     */
	private Long recipeTemplateId;
    /**
     * 菜品名称
     */
	private String recipeTemplateName;
    /**
     * 单人数量
     */
	private Integer amount;
    /**
     * 重量
     */
	private BigDecimal weight;
	/**
	 * 价格
	 */
	private BigDecimal price;

	@ApiModelProperty(value = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	@ApiModelProperty(value = "修改时间")
	@TableField(fill = FieldFill.UPDATE)
	private LocalDateTime updateTime;

	@ApiModelProperty(value = "创建人")
	@TableField(fill = FieldFill.INSERT)
	private String creator;

	@ApiModelProperty(value = "修改人")
	@TableField(fill = FieldFill.UPDATE)
	private String updateUser;
}
